SRCS:=$(wildcard *.cpp)
EXES:= $(patsubst %.cpp,%,$(SRCS))
CC:= g++
all:$(EXES)
%:%.cpp
	$(CC) $^ -o $@ -g
clean:
	$(RM) $(EXES)
rebuild:clean all

